<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: pink;
        }
    </style>
</head>

<body>
    <div></div>
    <script>
        var div = document.querySelector("div");
        div.addEventListener('click', function() {
            location.href = "https://wenku.baidu.com/view/a78080c4a36925c52cc58bd63186bceb19e8eda8.html";
        })
    </script>
</body>

</html>